class DdzLoadScene extends BaseScene {
	public constructor() {
		super();

		this.skinName = "resource/GameSkin/Ddz/DdzLoadScene.exml";
	}
	tab_checkStack: eui.TabBar;
	viewstack: eui.ViewStack;
	protected partAdded(partName: string, instance: any): void {
		super.partAdded(partName, instance);
	}


	protected childrenCreated(): void {
		super.childrenCreated();
		this.viewstack.selectedIndex = 0;
		this.tab_checkStack.dataProvider = new eui.ArrayCollection(["登录", "注册"])
		this.tab_checkStack.addEventListener(eui.ItemTapEvent.ITEM_TAP, () => {
			this.viewstack.selectedIndex = this.viewstack.selectedIndex == 1 ? 0 : 1;
			this.addChild(new LoadView())

		}, this)

	}

	OnCreate() {
		console.log("Ddz Oncreate")
	}
	OnDestory() {
		console.log("Ddz OnDestory")

	}
	OnPause() {
		console.log("Ddz OnPause");

	}
	OnResume() {

		console.log("OnResume");

	}

}